# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=dnsgoblin
pkgver=0.1
pkgrel=2
epoch=1
groups=('blackarch' 'blackarch-scanner')
pkgdesc='Nasty creature constantly searching for DNS servers. It uses standard dns querys and waits for the replies.'
url='http://nullsecurity.net/tools/scanner.html'
arch=('x86_64' 'aarch64')
license=('custom')
source=('https://github.com/nullsecuritynet/tools/raw/main/scanner/dnsgoblin/release/dnsgoblin.c')
sha512sums=('740c31870f2c10a2d267506f674d02624b472b5cdb31dc4f5c0b255c5d07ef628cba3d0fb22a11c4782a47d20f3993270161dcc4a422eddd7ff16e2a931ed10f')

build() {
  gcc -Wall -Wextra -pedantic --std=gnu99 $CFLAGS -lpthread \
    -D_REENTRANT -o $pkgname "$pkgname.c"
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

